package com.wzy.service.imp;

import com.wzy.dao.KtQkDao;
import com.wzy.entity.KtQk;
import com.wzy.service.KtQkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;



@Service
@Transactional
public class KtQkServiceImpl implements KtQkService {
    private KtQkDao ktQkDao;
    @Autowired
    public KtQkServiceImpl(KtQkDao ktQkDao) {
        this.ktQkDao = ktQkDao;
    }

    @Override
    public List<KtQk> lists() {
        return ktQkDao.lists();
    }

    @Override
    public void save(KtQk ktqk) {
        ktQkDao.save(ktqk);
    }

    @Override
    public KtQk findById(Integer id) {
        return ktQkDao.findById(id);
    }

    @Override
    public void update(KtQk ktqk) {
        ktQkDao.update(ktqk);
    }

    @Override
    public void delete(Integer id) {
        ktQkDao.delete(id);
    }


}
